/*
 * EnterpriseCus_Cooperate。java
 *
 * Created Date: 2014年12月3日
 *				
 * Copyright (c)  Centling Technologies Co., Ltd.
 *
 * This software is the confidential and proprietary information of
 *  Centling Technologies Co., Ltd. ("Confidential Information"). You shall not
 * disclose such Confidential Information and shall use it only in accordance
 * with the terms of the license agreement you entered into with
 * Centling Technologies Co., Ltd.
 */

package com.centling.bluecollar.customer.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.centling.bluecollar.system.entity.CooperateWay;


/**
 * @author hellsing
 * @version  <br>
 * <p>类的描述</p>
 */

@Entity
@Table(name="enterprise_cooperate")
public class EnterpriseCus_Cooperate {
	private int id;
	private EnterpriseCustomer enterpriseCustomer;
	private CooperateWay cooperateWay;
	
	/**
	 * @return the id
	 */
	@Id
	@GeneratedValue
	public int getId() {
	
		return id;
	}
	
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
	
		this.id = id;
	}
	
	/**
	 * @return the enterpriseCustomer
	 */
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="enterpriseCustomerId")
	public EnterpriseCustomer getEnterpriseCustomer() {
	
		return enterpriseCustomer;
	}
	
	/**
	 * @param enterpriseCustomer the enterpriseCustomer to set
	 */
	public void setEnterpriseCustomer(EnterpriseCustomer enterpriseCustomer) {
	
		this.enterpriseCustomer = enterpriseCustomer;
	}
	
	/**
	 * @return the cooperateWay
	 */
	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="cooperateWayId")
	public CooperateWay getCooperateWay() {
	
		return cooperateWay;
	}
	
	/**
	 * @param cooperateWay the cooperateWay to set
	 */
	public void setCooperateWay(CooperateWay cooperateWay) {
	
		this.cooperateWay = cooperateWay;
	}
}
